const Router = require("koa-router");
const router = new Router({ prefix: "/upload" });
const { uploadpic, getpic } = require("../controller/upload.controller");
const { picupload } = require("../middleware/file.middleware");
//上传图片
router.post("/uploadpic", picupload, uploadpic);
//显示图片
router.get("/getpic/:id", getpic);

module.exports = router;
